﻿<style>
    ul.two-columns li {
        width: 50%;
        float: left;
        margin: 0;
        padding: 0;
        list-style-type: none;
    }

    /* Clear Fix */
    .clearfix:after {
        visibility: hidden;
        display: block;
        font-size: 0;
        content: " ";
        clear: both;
        height: 0;
    }


    * html .clearfix {
        zoom: 1;
    }
    /* IE6 */
    *:first-child + html .clearfix {
        zoom: 1;
    }
    /* IE7 */
</style>

@model CreateDefect.Models.UserDefect

@{Html.EnableClientValidation(true);}
<form method="post" action="/Home/SubmitDefect">
    <fieldset>
        <legend>Defect</legend>
        <ul class="two-columns clearfix">
            @{System.Reflection.PropertyInfo[] properties = typeof(CreateDefect.Models.UserDefect).GetProperties();}

            @foreach (var a in properties)
            {                
                <li>
                    @Html.Label(a.Name)
                    @Html.Editor(a.Name)
                </li>
            }
        </ul>
        <input type="submit" value="Create" />
    </fieldset>
</form>

